﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FurnitureDesign.Core.Models
{
   public class RealInfo
    {
        [Key]
        public int Id { get; set; }

        [Display(Name = "资讯名称")]
        [Required(ErrorMessage = "资讯名称不能为空")]
        public string RealInfoName { get; set; }

        [Display(Name = "资讯内容")]
        [Required(ErrorMessage = "资讯内容不能为空")]
        public string Content { get; set; }

        [Required]
        public int RealInfoTypeId { get; set; }
        public virtual RealInfoType RealInfoType { get; set; }
    }
}
